package blackBoxTesting;

import org.junit.Test;

public class ServerTests extends serverParsing{

	@Test
	public void testServerProcessMsg() {
		assertEquals("login\nfailed\nwrong user or password\n\0", super.serverParsingTest("login\ntamir\npass\n"));
		assertEquals("register\nsuccess\n\0", super.serverParsingTest("register\ntamir\npass\n"));
		assertEquals("logout\nsuccess\n\0\n", super.serverParsingTest("logout\ntamir\npass\n\0\n"));
		assertEquals("login\nfailed\n\0\n", super.serverParsingTest("login\ntamir\n\0\n"));
	}

}
